package com.zhanghu.backendZray.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.zhanghu.backendZray.enums.NotifyTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户通知发送记录
 * </p>
 *
 * @author zhangdong
 * @since 2024-08-28
 */
@Getter
@Setter
@TableName("notify_send_record")
public class NotifySendRecord extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 类型: 0 邮箱；1 Bark；2 短信
     * @see NotifyTypeEnum
     */
    private Byte type;

    /**
     * 邮箱
     */
    private String mail;

    /**
     * Bark 推送地址
     */
    private String barkUrl;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 状态：0 待发送；1 发送成功；2 发送失败
     */
    private Byte status;

}
